Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

Phrases Previous Year Questions (PYQs)

Phrases 1s Complement 2s Complement PYQ



Which of the following is the representation of decimal number (- 147) in 2's compliment notation on a 12-bit machine?





Go to Discussion


Solution



The smallest integer that can be represented by an 8 bit number in 2's complement form is





Go to Discussion


Solution



The maximum and minimum value represented in signed 16-bit 2s compliment representation are





Go to Discussion


Solution

 Maximum & Minimum in 16-bit 2's Complement

 Total Bits: 16

Format: 1 sign bit + 15 magnitude bits

  • Maximum (positive): 0111 1111 1111 1111(2) = +32,767
  • Minimum (negative): 1000 0000 0000 0000(2) = −32,768

✅ Final Answer:
Minimum = −32,768
Maximum = +32,767



If N is a 16-bit signed integer, then 2's complement representation of N is (F87B)16. The 2's complement representation of 8*N is





Go to Discussion


Solution



In an 8 bit representation of computer system the decimal number 47 has to be subtracted from 38 and the result in binary 2's complement is _________






Go to Discussion


Solution



Consider the following 4- bit binary numbers represented in the 2’s complement form : 1101 and 0100 What would be the result when we add them?





Go to Discussion


Solution

2's Complement Addition (4-bit)

Given: 1101 and 0100 (in 2’s complement)

Step-by-step:

  • 1101 = −3 (in decimal)
  • 0100 = +4 (in decimal)
  • Sum = −3 + 4 = +1
  • +1 in 4-bit 2’s complement = 0001

✅ Final Answer: 0001



Given that numbers A and B are two 8 bit 2’s complement numbers with A = 11111111, B = 11111111. Then sum A + B is _________





Go to Discussion


Solution

2's Complement Addition (8-bit)

Given:

  • A = 11111111 → (−1)
  • B = 11111111 → (−1)

Sum: −1 + (−1) = −2

Convert −2 to 8-bit 2's complement:

  • +2 = 00000010
  • Invert = 11111101
  • Add 1 = 11111110

✅ Final Answer: 11111110



Let the given number 11001, 1001 and 111001 be correspond to the 2’s complement representation. Then with which one of the following decimal number, the given numbers match





Go to Discussion


Solution

Binary to Decimal: 2's Complement Conversion

Given binary numbers:

  • 11001 (5-bit)
  • 1001 (4-bit)
  • 111001 (6-bit)

Step-by-step (2's complement):

  • Each starts with 1 → negative number
  • Convert by inverting and adding 1
  • All result in binary 0111 → decimal 7
  • So final value = −7

✅ Final Answer: Each binary number corresponds to the decimal number −7.



The maximum and minimum value represented in signed 16 bit 2's complement representations are





Go to Discussion


Solution

Range of 2's complement 2n1 to 2n1+1

Range for 16 bits = 2161 to 2161+1

Range for 16 bits = 215 to 225+1

Range for 16 bits = 32768 to 32767


The 2's complement representation of the number (–100)10 in an 8 bit computer is





Go to Discussion


Solution



Subtract (1010)2 from (1101)using first complement





Go to Discussion


Solution



The range of n-bit signed magnitude representation is





Go to Discussion


Solution



Phrases


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Phrases


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.